package com.pengcheng.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pengcheng.modules.sys.entity.SysUserEntity;
import com.pengcheng.modules.sys.vo.UserRoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserDao extends BaseMapper<SysUserEntity> {

    @Select("SELECT user_id,username,password,'角色' as role_name from sys_user")
    List<UserRoleVo> selectUserRoleList();

}
